package com.gitee.urick.union.api.controller.sys;

import com.gitee.urick.union.entity.User;
import com.gitee.urick.union.utils.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Controller Login
 *
 * @author Rick 2021/3/8 15:31
 * @since 1.0
 */
@RestController
@RequestMapping("/login")
public class LoginController {

    /**
     * 用户登录
     *
     * @param user 用户信息
     * @return 登录结果
     */
    @RequestMapping("/")
    private Result<User> login(User user) {
        return Result.success();
    }


    /**
     * 用户登出
     *
     * @param user 用户信息
     * @return 登录出
     */
    @RequestMapping("/")
    private Result<User> logout(User user) {
        return Result.success();
    }
}
